60 WDT_A_hold(WDT_A_BASE);
98 Comp_E_initParam
param = {0};
99 param.posTerminalInput = COMP_E_INPUT13;
100 param.negTerminalInput = COMP_E_VREF;
101 param.outputFilterEnableAndDelayLevel = COMP_E_FILTEROUTPUT_OFF;
102 param.invertedOutputPolarity = COMP_E_NORMALOUTPUTPOLARITY;
103 Comp_E_init(COMP_E_BASE, &
param);
112 Comp_E_setReferenceVoltage(COMP_E_BASE,
119 Comp_E_setInterruptEdgeDirection(COMP_E_BASE, COMP_E_RISINGEDGE);
122 Comp_E_clearInterrupt(COMP_E_BASE, (COMP_E_OUTPUT_INTERRUPT_FLAG + COMP_E_INTERRUPT_FLAG_INVERTED_POLARITY));
130 Comp_E_clearInterrupt(COMP_E_BASE,
131 COMP_E_OUTPUT_INTERRUPT_FLAG
134 Comp_E_enableInterrupt(COMP_E_BASE,
135 COMP_E_OUTPUT_INTERRUPT
139 Comp_E_enable(COMP_E_BASE);
142 __bis_SR_register(LPM4_bits + GIE);
153 #if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
154 #pragma vector=COMP_E_VECTOR
156 #elif defined(__GNUC__)
157 __attribute__((interrupt(COMP_E_VECTOR)))
162 Comp_E_toggleInterruptEdgeDirection(COMP_E_BASE);
165 Comp_E_clearInterrupt(COMP_E_BASE, COMP_E_OUTPUT_INTERRUPT_FLAG);
173 GPIO_toggleOutputOnPin(
MPU_initThreeSegmentsParam param
GPIO_setOutputLowOnPin(GPIO_PORT_LED1|GPIO_PORT_LED2, GPIO_PIN_LED1|GPIO_PIN_LED2)